function ok()
{
	var eamineeId = document.getElementById("eamineeId").value;
	
	if((/(^(1)(8)(2)(2)\d{10}$)/.test(eamineeId)))
				passByValue(eamineeId)
			else
				alert("考生号错误");
		passByValue(eamineeId)}
	


function passByValue(eamineeId)
{
	$.ajax({
		type:'GET',
		cache:false,
		url:rootPath+"/getAchievementByEamineeId",
		async:true,
		data:{
			type:1,
			EamineeId:eamineeId
		},
		success:function(result)
		{
			
			if(result.code == 100)
			{
				window.sessionStorage.setItem("eamineeId",result.extend.Achievements.studentId);
				window.location.href = "Fraction.html";
			}
			else
			{
				alert(result.extend.code);
			}
		}
	});
}

function resetValue()
{
	document.getElementById("eamineeId").value = "";
}